package com.nondo.rdp.finance.domain.collection;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.nondo.rdp.core.domain.base.BaseEntity;
import com.nondo.rdp.finance.config.DbConfig;

import javax.persistence.*;

/**
 * 专辑详情
 */
@Entity
@Table(name = DbConfig.DEFAULT_TABLE_PREFIX + "coll_ximalaya_album")
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class XimalayaAlbum {
    private Long id;    //自增ID
    private int albumId;//专辑ID
    private int categoryId;//分类ID
    private String categoryName;   //分类名字
    private String title;   //专辑名字
    private String coverOrigin;   //课程原始封面
    private String coverSmall;   //封面小
    private String coverMiddle;   //封面中
    private String coverLarge;   //封面大
    private int uid;   //用户ID
    private String nickname;   //用户昵称
    private String avatarPath;   //用户头像
    private String intro;   //专辑简介
    private String shortIntro;   //专辑简介短
    private String introRich;   //专辑简介全，富文本
    private String shortIntroRich;   //专辑简介所有
    private String customSubTitle;   //用户自定义title

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "albumId", length = 11)
    public int getAlbumId() {
        return albumId;
    }

    public void setAlbumId(int albumId) {
        this.albumId = albumId;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCoverOrigin() {
        return coverOrigin;
    }

    public void setCoverOrigin(String coverOrigin) {
        this.coverOrigin = coverOrigin;
    }

    public String getCoverSmall() {
        return coverSmall;
    }

    public void setCoverSmall(String coverSmall) {
        this.coverSmall = coverSmall;
    }

    public String getCoverMiddle() {
        return coverMiddle;
    }

    public void setCoverMiddle(String coverMiddle) {
        this.coverMiddle = coverMiddle;
    }

    public String getCoverLarge() {
        return coverLarge;
    }

    public void setCoverLarge(String coverLarge) {
        this.coverLarge = coverLarge;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatarPath() {
        return avatarPath;
    }

    public void setAvatarPath(String avatarPath) {
        this.avatarPath = avatarPath;
    }

    @Column(name = "intro", columnDefinition = "text")
    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    @Column(name = "shortIntro", columnDefinition = "text")
    public String getShortIntro() {
        return shortIntro;
    }

    public void setShortIntro(String shortIntro) {
        this.shortIntro = shortIntro;
    }

    @Column(name = "introRich", columnDefinition = "text")
    public String getIntroRich() {
        return introRich;
    }

    public void setIntroRich(String introRich) {
        this.introRich = introRich;
    }

    @Column(name = "shortIntroRich", columnDefinition = "text")
    public String getShortIntroRich() {
        return shortIntroRich;
    }

    public void setShortIntroRich(String shortIntroRich) {
        this.shortIntroRich = shortIntroRich;
    }

    public String getCustomSubTitle() {
        return customSubTitle;
    }

    public void setCustomSubTitle(String customSubTitle) {
        this.customSubTitle = customSubTitle;
    }
}
